package com.czkt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
public class CstService implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务编号
     */
    @TableId(value = "svr_id", type = IdType.AUTO)
    private Long svrId;

    /**
     * 服务类型
     */
    private String svrType;

    /**
     * 概要
     */
    private String svrTitle;

    /**
     * 客户编号
     */
    private String svrCustNo;

    /**
     * 客户姓名
     */
    private String svrCustName;

    /**
     * 服务状态
     */
    private String svrStatus;

    /**
     * 服务请求
     */
    private String svrRequest;

    /**
     * 创建人编号
     */
    private Long svrCreateId;

    /**
     * 创建人姓名
     */
    private String svrCreateBy;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date svrCreateDate;

    /**
     * 分配人编号
     */
    private Long svrDueId;

    /**
     * 分配人姓名
     */
    private String svrDueTo;

    /**
     * 分配时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date svrDueDate;

    /**
     * 服务处理
     */
    private String svrDeal;

    /**
     * 处理人编号
     */
    private Long svrDealId;

    /**
     * 处理人姓名
     */
    private String svrDealBy;

    /**
     * 处理时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date svrDealDate;

    /**
     * 处理结果
     */
    private String svrResult;

    /**
     * 满意度
     */
    private Integer svrSatisfy;


    public CstService() {
    }

    public CstService( Long svrId, String svrType, String svrTitle, String svrCustNo, String svrCustName, String svrStatus, String svrRequest, Long svrCreateId, String svrCreateBy, Date svrCreateDate, Long svrDueId, String svrDueTo, Date svrDueDate, String svrDeal, Long svrDealId, String svrDealBy, Date svrDealDate, String svrResult, Integer svrSatisfy) {
        this.svrId = svrId;
        this.svrType = svrType;
        this.svrTitle = svrTitle;
        this.svrCustNo = svrCustNo;
        this.svrCustName = svrCustName;
        this.svrStatus = svrStatus;
        this.svrRequest = svrRequest;
        this.svrCreateId = svrCreateId;
        this.svrCreateBy = svrCreateBy;
        this.svrCreateDate = svrCreateDate;
        this.svrDueId = svrDueId;
        this.svrDueTo = svrDueTo;
        this.svrDueDate = svrDueDate;
        this.svrDeal = svrDeal;
        this.svrDealId = svrDealId;
        this.svrDealBy = svrDealBy;
        this.svrDealDate = svrDealDate;
        this.svrResult = svrResult;
        this.svrSatisfy = svrSatisfy;
    }

    /**
     * 获取
     * @return svrId
     */
    public Long getSvrId() {
        return svrId;
    }

    /**
     * 设置
     * @param svrId
     */
    public void setSvrId(Long svrId) {
        this.svrId = svrId;
    }

    /**
     * 获取
     * @return svrType
     */
    public String getSvrType() {
        return svrType;
    }

    /**
     * 设置
     * @param svrType
     */
    public void setSvrType(String svrType) {
        this.svrType = svrType;
    }

    /**
     * 获取
     * @return svrTitle
     */
    public String getSvrTitle() {
        return svrTitle;
    }

    /**
     * 设置
     * @param svrTitle
     */
    public void setSvrTitle(String svrTitle) {
        this.svrTitle = svrTitle;
    }

    /**
     * 获取
     * @return svrCustNo
     */
    public String getSvrCustNo() {
        return svrCustNo;
    }

    /**
     * 设置
     * @param svrCustNo
     */
    public void setSvrCustNo(String svrCustNo) {
        this.svrCustNo = svrCustNo;
    }

    /**
     * 获取
     * @return svrCustName
     */
    public String getSvrCustName() {
        return svrCustName;
    }

    /**
     * 设置
     * @param svrCustName
     */
    public void setSvrCustName(String svrCustName) {
        this.svrCustName = svrCustName;
    }

    /**
     * 获取
     * @return svrStatus
     */
    public String getSvrStatus() {
        return svrStatus;
    }

    /**
     * 设置
     * @param svrStatus
     */
    public void setSvrStatus(String svrStatus) {
        this.svrStatus = svrStatus;
    }

    /**
     * 获取
     * @return svrRequest
     */
    public String getSvrRequest() {
        return svrRequest;
    }

    /**
     * 设置
     * @param svrRequest
     */
    public void setSvrRequest(String svrRequest) {
        this.svrRequest = svrRequest;
    }

    /**
     * 获取
     * @return svrCreateId
     */
    public Long getSvrCreateId() {
        return svrCreateId;
    }

    /**
     * 设置
     * @param svrCreateId
     */
    public void setSvrCreateId(Long svrCreateId) {
        this.svrCreateId = svrCreateId;
    }

    /**
     * 获取
     * @return svrCreateBy
     */
    public String getSvrCreateBy() {
        return svrCreateBy;
    }

    /**
     * 设置
     * @param svrCreateBy
     */
    public void setSvrCreateBy(String svrCreateBy) {
        this.svrCreateBy = svrCreateBy;
    }

    /**
     * 获取
     * @return svrCreateDate
     */
    public String getSvrCreateDate() throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(svrCreateDate);
    }

    /**
     * 设置
     * @param svrCreateDate
     */
    public void setSvrCreateDate(Date svrCreateDate) {
        this.svrCreateDate = svrCreateDate;
    }

    /**
     * 获取
     * @return svrDueId
     */
    public Long getSvrDueId() {
        return svrDueId;
    }

    /**
     * 设置
     * @param svrDueId
     */
    public void setSvrDueId(Long svrDueId) {
        this.svrDueId = svrDueId;
    }

    /**
     * 获取
     * @return svrDueTo
     */
    public String getSvrDueTo() {
        return svrDueTo;
    }

    /**
     * 设置
     * @param svrDueTo
     */
    public void setSvrDueTo(String svrDueTo) {
        this.svrDueTo = svrDueTo;
    }

    /**
     * 获取
     * @return svrDueDate
     */
    public String getSvrDueDate() throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(svrDueDate);
    }


    /**
     * 设置
     * @param svrDueDate
     */
    public void setSvrDueDate(Date svrDueDate) {
        this.svrDueDate = svrDueDate;
    }

    /**
     * 获取
     * @return svrDeal
     */
    public String getSvrDeal() {
        return svrDeal;
    }

    /**
     * 设置
     * @param svrDeal
     */
    public void setSvrDeal(String svrDeal) {
        this.svrDeal = svrDeal;
    }

    /**
     * 获取
     * @return svrDealId
     */
    public Long getSvrDealId() {
        return svrDealId;
    }

    /**
     * 设置
     * @param svrDealId
     */
    public void setSvrDealId(Long svrDealId) {
        this.svrDealId = svrDealId;
    }

    /**
     * 获取
     * @return svrDealBy
     */
    public String getSvrDealBy() {
        return svrDealBy;
    }

    /**
     * 设置
     * @param svrDealBy
     */
    public void setSvrDealBy(String svrDealBy) {
        this.svrDealBy = svrDealBy;
    }

    /**
     * 获取
     * @return svrDealDate
     */
    public String getSvrDealDate() throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(svrDealDate);
    }
    /**
     * 设置
     * @param svrDealDate
     */
    public void setSvrDealDate(Date svrDealDate) {
        this.svrDealDate = svrDealDate;
    }

    /**
     * 获取
     * @return svrResult
     */
    public String getSvrResult() {
        return svrResult;
    }

    /**
     * 设置
     * @param svrResult
     */
    public void setSvrResult(String svrResult) {
        this.svrResult = svrResult;
    }

    /**
     * 获取
     * @return svrSatisfy
     */
    public Integer getSvrSatisfy() {
        return svrSatisfy;
    }

    /**
     * 设置
     * @param svrSatisfy
     */
    public void setSvrSatisfy(Integer svrSatisfy) {
        this.svrSatisfy = svrSatisfy;
    }

    public String toString() {
        return "CstService{serialVersionUID = " + serialVersionUID + ", svrId = " + svrId + ", svrType = " + svrType + ", svrTitle = " + svrTitle + ", svrCustNo = " + svrCustNo + ", svrCustName = " + svrCustName + ", svrStatus = " + svrStatus + ", svrRequest = " + svrRequest + ", svrCreateId = " + svrCreateId + ", svrCreateBy = " + svrCreateBy + ", svrCreateDate = " + svrCreateDate + ", svrDueId = " + svrDueId + ", svrDueTo = " + svrDueTo + ", svrDueDate = " + svrDueDate + ", svrDeal = " + svrDeal + ", svrDealId = " + svrDealId + ", svrDealBy = " + svrDealBy + ", svrDealDate = " + svrDealDate + ", svrResult = " + svrResult + ", svrSatisfy = " + svrSatisfy + "}";
    }
}
